package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgMaterial;
import com.ygqh.baby.po.YgMaterialExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
public interface YgMaterialMapper {
    int countByExample(YgMaterialExample example);

    int deleteByExample(YgMaterialExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgMaterial record);

    int insertSelective(YgMaterial record);

    List<YgMaterial> selectByExample(YgMaterialExample example);

    YgMaterial selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgMaterial record, @Param("example") YgMaterialExample example);

    int updateByExample(@Param("record") YgMaterial record, @Param("example") YgMaterialExample example);

    int updateByPrimaryKeySelective(YgMaterial record);

    int updateByPrimaryKey(YgMaterial record);
    
    int countSuper(@Param ("q") String q);
    
    List<YgMaterial> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);
    
   	int selectByName(@Param("name")String name,@Param("id")Long id);
   	List<YgMaterial> selectByNameList(@Param("materialList") List<String> materialList);
}



